package com.qfedu.lc.user.config;

import com.qfedu.lc.common.config.RabbitKeyConfig;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration // 表明是配置类
public class RabbitConfig {



    @Bean // 在容器中创建rabbtit 队列
    public Queue smsQueue(){

        return  new Queue(RabbitKeyConfig.Q_SENDSMS);
    }

    @Bean // 积分成长值队列
    public Queue growthQueue(){
        return new Queue(RabbitKeyConfig.Q_USER_GROWTH);
    }

}
